<?php /* Smarty version Smarty-3.1.12, created on 2013-03-24 20:06:38
         compiled from "D:\wamp\www\acps_new\templates\reports\payroll.tpl" */ ?>
<?php /*%%SmartyHeaderCode:23830514f48add47172-74918996%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cae28a451ffcbeeb46e87ea7f9e5ce4c01e25af7' => 
    array (
      0 => 'D:\\wamp\\www\\acps_new\\templates\\reports\\payroll.tpl',
      1 => 1364155595,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '23830514f48add47172-74918996',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_514f48add48810_67615687',
  'variables' => 
  array (
    'data' => 0,
    'period' => 0,
    'user' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_514f48add48810_67615687')) {function content_514f48add48810_67615687($_smarty_tpl) {?><h2 class="pageTitle">Payroll</h2>

<form style="margin: 1em" action="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=payroll" method="post">
    Period:
    <select size="1" name="period">
        <?php  $_smarty_tpl->tpl_vars["period"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["period"]->_loop = false;
 $_smarty_tpl->tpl_vars["i"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['periods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["period"]->key => $_smarty_tpl->tpl_vars["period"]->value){
$_smarty_tpl->tpl_vars["period"]->_loop = true;
 $_smarty_tpl->tpl_vars["i"]->value = $_smarty_tpl->tpl_vars["period"]->key;
?>
            <option <?php if ($_smarty_tpl->tpl_vars['period']->value==$_smarty_tpl->tpl_vars['data']->value['today']){?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['period']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['period']->value;?>
</option>
        <?php } ?>
    </select>
    <input value="Show" type="submit" />
</form>

<?php if ($_smarty_tpl->tpl_vars['data']->value['show']==1){?>

    <h2 class="pageTitle">Payroll for <?php echo $_smarty_tpl->tpl_vars['data']->value['selectedMonthName'];?>
 <?php echo $_smarty_tpl->tpl_vars['data']->value['selectedYear'];?>
</h2>

    <table class="list" style="width: auto">
        <tr>
            <td style="text-align: left; padding: 2px 5px;"><strong>Technic</strong</td>
            <td style="text-align: right; padding: 2px 5px;"><strong>First component</strong</td>
            <td style="text-align: right; padding: 2px 5px;"><strong>Second component</strong</td>
        </tr>
        <?php  $_smarty_tpl->tpl_vars["user"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["user"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["user"]->key => $_smarty_tpl->tpl_vars["user"]->value){
$_smarty_tpl->tpl_vars["user"]->_loop = true;
?>
        <tr>
            <td style="text-align: left; padding: 2px 5px;"><?php echo $_smarty_tpl->tpl_vars['user']->value['name'];?>
 <?php echo $_smarty_tpl->tpl_vars['user']->value['surname'];?>
</td>
            <td style="text-align: right; padding: 2px 5px;"><?php echo $_smarty_tpl->tpl_vars['user']->value['first'];?>
</td>
            <td style="text-align: right; padding: 2px 5px;"><?php echo $_smarty_tpl->tpl_vars['user']->value['second'];?>
</td>
        </tr>
        <?php } ?>
    </table>

<?php }?><?php }} ?>